<?xml version="1.0" encoding="UTF-8"?>
<definitions
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  targetNamespace="Examples">

  <process id="process" name="Test method expression with two params same type" isExecutable="true">

    <startEvent id="theStart" />
    <sequenceFlow id="flow1" sourceRef="theStart" targetRef="servicetask1" />
    <serviceTask id="servicetask1" name="ServiceTask 1"
                 camunda:expression="${execution.setVariable('task1Var',myVar.testMethod('invoiceNumber','NO-123'))}" />
    <sequenceFlow id="flow2" sourceRef="servicetask1" targetRef="servicetask2" />
    <serviceTask id="servicetask2" name="ServiceTask 2"
                 camunda:expression="${execution.setVariable('task2Var',myVar.testMethod('invoiceNumber','NO-123','lastParam'))}" />
    <sequenceFlow id="flow3" sourceRef="servicetask2" targetRef="userTask" />
    <userTask id="userTask" />
    <sequenceFlow id="flow4" sourceRef="userTask" targetRef="theEnd" />
    <endEvent id="theEnd" />

  </process>

</definitions>
